<template>
  <div class="home">
    <head-nav
      :province='province'
      setCurrYear='setCurrYear'
    ></head-nav>
    <div class="content-box">
      <div class="top-box">
        <china-map
          @setCurrProvince='setCurrProvince'
          class="map-box"
        ></china-map>
        <scene-monitoring class="map-box"></scene-monitoring>
      </div>
      <div class="bottom-box">
        <project-num-contract class="chart-box-item"></project-num-contract>
        <div class="chart-box-item"></div>
        <div class="chart-box-item"></div>
        <div class="chart-box-item"></div>
        <div class="chart-box-item"></div>
        <div class="chart-box-item"></div>
      </div>
    </div>
    <ul>
      <li class="test">ssssssssssss</li>
    </ul>
  </div>
</template>

<script>
import HeadNav from "@/components/HeadNav";
import ChinaMap from "@/components/ChinaMap";
import SceneMonitoring from "@/components/SceneMonitoring";
// import ProjectTypePie from "@/components/ProjectTypePie";
// import ProjectCostPie from "@/components/ProjectCostPie";
// import ProjectNumMoney from "@/components/ProjectNumMoney";
// import CarryPrizeNumType from "@/components/CarryPrizeNumType";
// import ProjectBarData from "@/components/ProjectBarData";

import ProjectNumContract from "@/components/ProjectNumContract";

export default {
  name: "Home",
  components: {
    HeadNav,
    ChinaMap,
    SceneMonitoring,
    // ProjectTypePie,
    // ProjectCostPie,
    // ProjectNumMoney,
    // CarryPrizeNumType,
    // ProjectBarData,
    ProjectNumContract,
  },
  data() {
    return {
      province: "全国", // 当前区域
      year: new Date(), // 当前年
    };
  },
  created() {},
  methods: {
    //  设置当前省份
    setCurrProvince(province) {
      this.province = province;
    },
    // 设置当前年
    setCurrYear(year) {
      this.year = year;
    },
  },
};
</script>
<style lang="less" scoped>
@import "../common/css/common";
.home {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0 auto;
  padding-bottom: 100px;
  background: #f7f9fc;
}
.content-box {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 54px;
  box-sizing: border-box;
  margin-top: 20px;
  .top-box,
  .bottom-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    .map-box {
      width: 48%;
      height: 300px;
    }
  }
  .bottom-box {
    flex-wrap: wrap;
    .chart-box-item {
      width: 32%;
      height: 200px;
      background: pink;
      margin-top: 24px;
    }
  }
}
.project-bar-data{
  padding-top:0;
  padding-bottom:0;
}
::v-deep .el-tabs__header{
  margin:0;
}

 
</style>
